import React from 'react';
import { View } from 'react-native';

class RnConfig extends React.Component {
    constructor(props) {
        super(props)
        this.state = {
            Global: {}
        }
    }

    componentDidMount() {

    }

    //获取屏幕尺寸
    showMeasure = () => {
        this.dom.measure((x, y, width, height, px, py) => {
            console.log(width, height)
        });
    }

    render() {
        return <View id="root"
            style={{ flex: 1 }}
            ref={(ev) => { this.dom = ev }}
        >
            {this.props.children}
        </View>;
    }
}
export default RnConfig;